package no.uib.bioscope.gui;

import com.compomics.util.gui.UtilitiesGUIDefaults;
import javax.swing.JFrame;
import javax.swing.JOptionPane;

/**
 * The main GUI class
 *
 * @author Marc
 */
public class BioscopeGUI extends JFrame {

    /**
     * The main method used to start Bioscope in GUI mode.
     *
     * @param args
     */
    public static void main(String[] args) {

        // set the look and feel
        boolean numbusLookAndFeelSet = false;
        try {
            numbusLookAndFeelSet = UtilitiesGUIDefaults.setLookAndFeel();
        } catch (Exception e) {
        }

        if (!numbusLookAndFeelSet) {
            JOptionPane.showMessageDialog(null,
                    "Failed to set the default look and feel. Using backup look and feel.\n"
                    + "Bioscope will work but not look as good as it should...", "Look and Feel",
                    JOptionPane.WARNING_MESSAGE);
        }

        BioscopeGUI bioscopeGUI = new BioscopeGUI();
        bioscopeGUI.showWelcomeDialog();
    }

    /**
     * Creates a new PeptideShaker frame.
     */
    public BioscopeGUI() {
    }

    /**
     * Shows the welcome dialog
     */
    private void showWelcomeDialog() {
        JOptionPane.showMessageDialog(null,
                "Show welcome dialog", "Welcome dialog",
                JOptionPane.INFORMATION_MESSAGE);

    }
}
